package ar.edu.unq.wannaplay.calendareable;

import org.joda.time.Interval;

import ar.edu.unq.wannaplay.entity.Entity;

/**
 * Licences that an employee can take. The information of those are in
 * LicenceSpitter class.
 */
public class Licence extends Entity implements Calendareable {
    private static final long serialVersionUID = 1L;

    private String name;

    private Interval interval;

    public Licence() {
        super();
    }

    public Licence(final String aName, final Interval anInterval) {
        super();
        name = aName;
        interval = anInterval;
    }

    @Override
    public Interval getInterval() {
        return interval;
    }

    public void setInterval(final Interval interval) {
        this.interval = interval;
    }

    @Override
    public void setName(final String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

}
